
    <?$attributes = array('class' => 'email', 'id' => 'checknew');
    echo form_open('news/delscat', $attributes);?>     
    <table class="admindata">
        <thead>
                <tr>
                    <th colspan="4">
                        <input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                        Hiện có <?=$num?> danh mục <?=$pagination?>
                    </th>
                </tr>        
            <tr>
                <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
                <th>Tên chuyên mục</th>
                <th>Alias</th>
                <th class="publish">Chức năng</th>
            </tr>
        </thead>
        <?
        $k=1;
        foreach($list as $rs):
        $listsub = $this->news->get_Parent($rs->CatID);
        ?>
        <tr class="row<?=$k?>">
            <td><input type="checkbox" name="ar_id[]" value="<?=$rs->CatID?>"></td>
            <td><?=$rs->CatName?></td>
            <td><?=$rs->Alias?></td>
            <td align="center">
                <?=icon_edit('news/updatecat/'.$rs->CatID)?>
                <span id="publish<?=$rs->CatID?>"><?=icon_active("'contentcat'","'CatID'",$rs->CatID,$rs->IsActive)?></span>
                <?=icon_del('news/delcat/'.$rs->CatID.'/'.(int)$this->uri->segment(4))?>
            </td>
        </tr>
        <?if(count($listsub) > 0){?>
        <?foreach($listsub as $val):?>
        <tr class="row<?=$k?>">
            <td><input type="checkbox" name="ar_id[]" value="<?=$val->CatID?>"></td>
            <td style="padding-left: 30px;">|__<?=$val->CatName?></td>
            <td><?=$val->Alias?></td>
            <td align="center">
                <?=icon_edit('news/updatecat/'.$val->CatID)?>
                <span id="publish<?=$rs->CatID?>"><?=icon_active("'contentcat'","'CatID'",$val->CatID,$val->IsActive)?></span>
                <?=icon_del('news/delcat/'.$val->CatID.'/'.(int)$this->uri->segment(4))?>
            </td>
        </tr>
        <?endforeach?>
        <?}?>
        <?
        $k=1-$k;
        endforeach;?>
            <tfoot>
                <td colspan="4">
                    <input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                    Hiện có <?=$num?> danh mục <?=$pagination?>
                </td>
            </tfoot>        
    </table>
    <?=form_close()?>

